package com.snack.shop.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 微信支付回调通知DTO
 */
@Data
@Schema(description = "微信支付回调通知数据")
public class WxPayNotifyDTO {

    @Schema(description = "通知ID")
    private String id;

    @Schema(description = "通知创建时间")
    private String createTime;

    @Schema(description = "通知类型")
    private String eventType;

    @Schema(description = "通知数据类型")
    private String resourceType;

    @Schema(description = "通知数据")
    private Resource resource;

    @Schema(description = "回调摘要")
    private String summary;

    @Data
    public static class Resource {
        @Schema(description = "加密算法类型")
        private String algorithm;

        @Schema(description = "数据密文")
        private String ciphertext;

        @Schema(description = "附加数据")
        private String associatedData;

        @Schema(description = "原始类型")
        private String originalType;

        @Schema(description = "随机串")
        private String nonce;
    }
}

